package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SuperCommentImageMapper;
import com.ruoyi.system.domain.SuperCommentImage;
import com.ruoyi.system.service.ISuperCommentImageService;

/**
 * 评论图片,存储评论福袋图片URLService业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-13
 */
@Service
public class SuperCommentImageServiceImpl implements ISuperCommentImageService 
{
    @Autowired
    private SuperCommentImageMapper superCommentImageMapper;

    /**
     * 查询评论图片,存储评论福袋图片URL
     * 
     * @param id 评论图片,存储评论福袋图片URL主键
     * @return 评论图片,存储评论福袋图片URL
     */
    @Override
    public SuperCommentImage selectSuperCommentImageById(Long id)
    {
        return superCommentImageMapper.selectSuperCommentImageById(id);
    }

    /**
     * 查询评论图片,存储评论福袋图片URL列表
     * 
     * @param superCommentImage 评论图片,存储评论福袋图片URL
     * @return 评论图片,存储评论福袋图片URL
     */
    @Override
    public List<SuperCommentImage> selectSuperCommentImageList(SuperCommentImage superCommentImage)
    {
        return superCommentImageMapper.selectSuperCommentImageList(superCommentImage);
    }

    /**
     * 新增评论图片,存储评论福袋图片URL
     * 
     * @param superCommentImage 评论图片,存储评论福袋图片URL
     * @return 结果
     */
    @Override
    public int insertSuperCommentImage(SuperCommentImage superCommentImage)
    {
        return superCommentImageMapper.insertSuperCommentImage(superCommentImage);
    }
    /**
     * 批量新增评论图片,存储评论福袋图片URL
     *
     * @param superCommentImageList 评论图片,存储评论福袋图片URL
     * @return 结果
     */
    @Override
    public int insertBatchSuperCommentImage(List<SuperCommentImage> superCommentImageList){
        return superCommentImageMapper.insertBatchSuperCommentImage(superCommentImageList);
    }
    /**
     * 修改评论图片,存储评论福袋图片URL
     * 
     * @param superCommentImage 评论图片,存储评论福袋图片URL
     * @return 结果
     */
    @Override
    public int updateSuperCommentImage(SuperCommentImage superCommentImage)
    {
        return superCommentImageMapper.updateSuperCommentImage(superCommentImage);
    }

    /**
     * 批量删除评论图片,存储评论福袋图片URL
     * 
     * @param ids 需要删除的评论图片,存储评论福袋图片URL主键
     * @return 结果
     */
    @Override
    public int deleteSuperCommentImageByIds(Long[] ids)
    {
        return superCommentImageMapper.deleteSuperCommentImageByIds(ids);
    }

    /**
     * 删除评论图片,存储评论福袋图片URL信息
     * 
     * @param id 评论图片,存储评论福袋图片URL主键
     * @return 结果
     */
    @Override
    public int deleteSuperCommentImageById(Long id)
    {
        return superCommentImageMapper.deleteSuperCommentImageById(id);
    }
}
